package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 销售车实体类
 * @author Zchaolin
 * @version 1.0
 * @created 29-7月-2022 9:34:37
 */
@TableName("t_sellCar")
public class SellCarBean {

	/**
	 * 编号
	 */
	@TableId(value = "pk_sellCarId",type = IdType.AUTO)
	private Integer id;
	/**
	 * 销售商品
	 */
	@TableField(exist = false)
	private ProductBean product;
	/**
	 * 销售商品编号
	 */
	@TableField("fk_productId")
	private String productId;
	/**
	 * 销售数量
	 */
	@TableField("sc_num")
	private Integer num;
	/**
	 * 销售用户编号
	 */
	@TableField("fk_userId")
	private Integer userId;

	public SellCarBean(){

	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public ProductBean getProduct() {
		return product;
	}

	public void setProduct(ProductBean product) {
		this.product = product;
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Override
	public String toString() {
		return "SellCarBean{" +
				"id=" + id +
				", product=" + product +
				", productId=" + productId +
				", num=" + num +
				", userId=" + userId +
				'}'+"\n";
	}
}